import request from '@/utils/request'

// 查询用户登录日志列表
export function listCatUserLog(query) {
  return request({
    url: '/system/catUserLog/list',
    method: 'get',
    params: query
  })
}

// 查询用户登录日志详细
export function getCatUserLog(id) {
  return request({
    url: '/system/catUserLog/' + id,
    method: 'get'
  })
}

// 新增用户登录日志
export function addCatUserLog(data) {
  return request({
    url: '/system/catUserLog',
    method: 'post',
    data: data
  })
}

// 修改用户登录日志
export function updateCatUserLog(data) {
  return request({
    url: '/system/catUserLog',
    method: 'put',
    data: data
  })
}

// 删除用户登录日志
export function delCatUserLog(id) {
  return request({
    url: '/system/catUserLog/' + id,
    method: 'delete'
  })
}

// 导出用户登录日志
export function exportCatUserLog(query) {
  return request({
    url: '/system/catUserLog/export',
    method: 'get',
    params: query
  })
}